package com.pm.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pm.business.mapper.CompeteEnterpriseCertificateMapper;
import com.pm.business.domain.CompeteEnterpriseCertificate;
import com.pm.business.service.ICompeteEnterpriseCertificateService;

/**
 * 企业证书Service业务层处理
 * 
 * @author zxl
 * @date 2022-05-07
 */
@Service
public class CompeteEnterpriseCertificateServiceImpl implements ICompeteEnterpriseCertificateService 
{
    @Autowired
    private CompeteEnterpriseCertificateMapper competeEnterpriseCertificateMapper;

    /**
     * 查询企业证书
     * 
     * @param certificateId 企业证书主键
     * @return 企业证书
     */
    @Override
    public CompeteEnterpriseCertificate selectCompeteEnterpriseCertificateByCertificateId(Long certificateId)
    {
        return competeEnterpriseCertificateMapper.selectCompeteEnterpriseCertificateByCertificateId(certificateId);
    }

    /**
     * 查询企业证书列表
     * 
     * @param competeEnterpriseCertificate 企业证书
     * @return 企业证书
     */
    @Override
    public List<CompeteEnterpriseCertificate> selectCompeteEnterpriseCertificateList(CompeteEnterpriseCertificate competeEnterpriseCertificate)
    {
        return competeEnterpriseCertificateMapper.selectCompeteEnterpriseCertificateList(competeEnterpriseCertificate);
    }

    /**
     * 新增企业证书
     * 
     * @param competeEnterpriseCertificate 企业证书
     * @return 结果
     */
    @Override
    public int insertCompeteEnterpriseCertificate(CompeteEnterpriseCertificate competeEnterpriseCertificate)
    {
        return competeEnterpriseCertificateMapper.insertCompeteEnterpriseCertificate(competeEnterpriseCertificate);
    }

    /**
     * 修改企业证书
     * 
     * @param competeEnterpriseCertificate 企业证书
     * @return 结果
     */
    @Override
    public int updateCompeteEnterpriseCertificate(CompeteEnterpriseCertificate competeEnterpriseCertificate)
    {
        return competeEnterpriseCertificateMapper.updateCompeteEnterpriseCertificate(competeEnterpriseCertificate);
    }

    /**
     * 批量删除企业证书
     * 
     * @param certificateIds 需要删除的企业证书主键
     * @return 结果
     */
    @Override
    public int deleteCompeteEnterpriseCertificateByCertificateIds(Long[] certificateIds)
    {
        return competeEnterpriseCertificateMapper.deleteCompeteEnterpriseCertificateByCertificateIds(certificateIds);
    }

    /**
     * 删除企业证书信息
     * 
     * @param certificateId 企业证书主键
     * @return 结果
     */
    @Override
    public int deleteCompeteEnterpriseCertificateByCertificateId(Long certificateId)
    {
        return competeEnterpriseCertificateMapper.deleteCompeteEnterpriseCertificateByCertificateId(certificateId);
    }
}
